{template 'include/header'}
<div class="container container-fill">
<style>
	.brief img{ width:100% !important;}
	.gy_d1{width: 100%;height: 46px;background: #fff;border-bottom: 1px solid #e7e7e7;position: fixed;top: 0;left: 0;z-index: 10;}
	.gy_d1l_img{width: 24px;float: left;margin-top: 11px;}
	.gy_d1l_spn{line-height: 46px;}
	.gy_d1l{width: 23%;float: left;margin-left: 2%}
	.gy_d1c{width: 50%;float: left;text-align: center;line-height: 46px;}
</style>
<div class="gy_d1">
	<div class="gy_d1l" onClick="javascript:history.back(-1);"><img class="gy_d1l_img" src="<?php echo MODULE_URL;?>/template/mobile/img/gy_l.png"><span class="gy_d1l_spn">返回</span></div>
	<div class="gy_d1c">捐款记录</div>
	<div class="clearfix"></div>
</div>
<div style="height:50px;"></div>
<div class="detail-main">	
	<div class="detail-div ">     	
     	<div class="show_div_1" style="margin-bottom:0px; padding:10px 0px 10px 0px;">			        	
			<div id="fund-sort" style="border-left:1px solid #d7d7d6;border-right:1px solid #d7d7d6;">
				{loop $fund_records $found_rec}			
					<!--list-item-->
					<div class="i_d_5">
						<div class="i_d_5_1" style="height:74px">
							<a href="{php echo $this->createMobileUrl('per',array('pro_id'=>$found_rec['pro_id']));}">
								<div class="i_d_5_1_l w65">
									<p><span class="title1">{php echo mb_substr($found_rec['pro_name'],0,12,'utf-8')}</span></p>
									<p style="margin-bottom:0px;">{php echo date('Y-m-d H:i:s',$found_rec['fund_time']);}</p>
								</div>
								<div class="i_d_5_1_r w34" style="text-align:right;">
									<p><span style="color:#fe6903; font-size:16px">{$found_rec['fund_value']}元</span></p>
									<p style="margin-bottom:0px;"><span class="i_show_cg" style="background:#43ac43;">捐赠成功</span></p>
								</div>
								<div class="clear"></div>
							</a> 
						 </div>
					</div>
				{/loop}
			</div>	
      		<div class="show-more" style="margin:0 !important; padding:10px  !important; background:#fff;"><a href="javascript:;" onclick="loadPage('1', 'fund-sort')" class="btn btn-default btn-block" id="pager" >浏览更多</a></div>
		</div>   
	</div>	
	<script type="text/javascript">
		function loadPage(pindex, container) {
			pindex = parseInt(pindex) + 1;
			$('#pager').html('正在加载数据...');
			$.get("{php echo $this->createMobileUrl('Fundpage',array());}", {'page' : pindex,'flag':'1'}, function(html){
				if(html!==""){
					$('#'+container).append(html);
					$('#pager').get(0).onclick = function(){
						loadPage(pindex, container);
					}
					$('#pager').html("浏览更多");
				}else{ 
					$('#pager').html("已经显示全部");
				}
			});
		}
	</script>	
	{template 'include/footer'}
	<div style="height:50px;"></div> 
</div>   
</body>
</html>
